<template>
  <div class="top-header">
    <div class="left">
      <h2>岗位视图</h2>
    </div>
    <div class="right">
      <el-input
        v-model="searchText"
        placeholder="请输入"
        prefix-icon="el-icon-search"
        size="small"
      >
      </el-input>
      <div class="actions">
        <el-tooltip content="收藏" placement="bottom">
          <i class="el-icon-star-off"></i>
        </el-tooltip>
        <el-tooltip content="消息" placement="bottom">
          <i class="el-icon-bell"></i>
        </el-tooltip>
        <el-avatar size="small">用户</el-avatar>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TopHeader',
  
  data() {
    return {
      searchText: ''
    }
  }
}
</script>

<style scoped>
.top-header {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.actions i {
  font-size: 20px;
  cursor: pointer;
  color: #666;
}
</style> 